/*
 * Copyright 2009 - sanatkumar.padhy
 * 
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  
 *  	http://www.apache.org/licenses/LICENSE-2.0
 *  
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS, 
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and 
 *  limitations under the License. 
 */
package com.googlecode.simplecrud.generator.db;

/**
 * This class represents the metadata for a database column.
 * @author sanatkumar.padhy
 */
public class ColumnMetadata {

	private String columnName;

	private int jdbcType;

	private String javaType;

	private int length;

	private int scale;

	private boolean ignore;

	private boolean primaryKey;

	private String typeConverter;

	private String property;

	/**
	 * @return the columnName
	 */
	public String getColumnName() {
		return columnName;
	}

	/**
	 * @param columnName the columnName to set
	 */
	public void setColumnName( String columnName ) {
		this.columnName = columnName;
	}

	/**
	 * @return the jdbcType
	 */
	public int getJdbcType() {
		return jdbcType;
	}

	/**
	 * @param jdbcType the jdbcType to set
	 */
	public void setJdbcType( int jdbcType ) {
		this.jdbcType = jdbcType;
	}

	/**
	 * @return the javaType
	 */
	public String getJavaType() {
		return javaType;
	}

	/**
	 * @param javaType the javaType to set
	 */
	public void setJavaType( String javaType ) {
		this.javaType = javaType;
	}

	/**
	 * @return the length
	 */
	public int getLength() {
		return length;
	}

	/**
	 * @param length the length to set
	 */
	public void setLength( int length ) {
		this.length = length;
	}

	/**
	 * @return the scale
	 */
	public int getScale() {
		return scale;
	}

	/**
	 * @param scale the scale to set
	 */
	public void setScale( int scale ) {
		this.scale = scale;
	}

	/**
	 * @return the ignore
	 */
	public boolean isIgnore() {
		return ignore;
	}

	/**
	 * @param ignore the ignore to set
	 */
	public void setIgnore( boolean ignore ) {
		this.ignore = ignore;
	}

	/**
	 * @return the primaryKey
	 */
	public boolean isPrimaryKey() {
		return primaryKey;
	}

	/**
	 * @param primaryKey the primaryKey to set
	 */
	public void setPrimaryKey( boolean primaryKey ) {
		this.primaryKey = primaryKey;
	}

	/**
	 * @return the typeConverter
	 */
	public String getTypeConverter() {
		return typeConverter;
	}

	/**
	 * @param typeConverter the typeConverter to set
	 */
	public void setTypeConverter( String typeConverter ) {
		this.typeConverter = typeConverter;
	}

	/**
	 * @param property the property to set
	 */
	public void setProperty( String property ) {
		this.property = property;
	}

	/**
	 * @return the property
	 */
	public String getProperty() {
		return property;
	}
}
